package com.adou.d16.ps;

import java.io.PrintStream;
import java.io.PrintWriter;

public class PWTest1 {
    public static void main(String[] args) {
        try(// 1.创建一个打印流管道
            final PrintWriter pw = new PrintWriter("d1-helloword-app\\src\\it09.txt");

            ) {
            pw.println(97);
            pw.println('a');
            pw.println("我爱你中国");
            pw.println(98.2);

            pw.write(97);
            pw.write("我是中国人123");


        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
